/*
 * @(#)RulesStructure.java  2.0 11/01/11
 *
 */
package com.hidromedsa.measure.controller.templateprocessor;

import com.hidromedsa.measure.entities.AbstractRule;
import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * <p>Estructure for the rules list</p>
 * @version 2.0, 11/01/11
 * @since   JDK1.0
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "rules")
public class RulesStructure implements Serializable{

    @XmlElement(name = "rule", type = AbstractRule.class)
    private List<AbstractRule> rules;
    private String frontLine;
    private String endLine;
    private String separator;

    public RulesStructure() {
    }

    
    public RulesStructure(List<AbstractRule> rules, String frontLine, String endLine, String separator) {
        this.rules = rules;
        this.frontLine = frontLine;
        this.endLine = endLine;
        this.separator = separator;
    }
    
    

    public List<AbstractRule> getRules() {
        return rules;
    }

    public void setRules(List<AbstractRule> rules) {
        this.rules = rules;
    }

    public String getFrontLine() {
        return frontLine;
    }

    public void setFrontLine(String frontLine) {
        this.frontLine = frontLine;
    }

    public String getEndLine() {
        return endLine;
    }

    public void setEndLine(String endLine) {
        this.endLine = endLine;
    }

    public String getSeparator() {
        return separator;
    }

    public void setSeparator(String separator) {
        this.separator = separator;
    }
    
    
}
